/**
 * 项目名称: springcloud
 * 类名称: Dept.java
 * 包名称: com.thomas.yang
 * <p>
 * 修改履历:
 * 日期       2019-12-24
 * 修正者     Thomas
 * 主要内容   初版做成
 * <p>
 * Copyright (c) 2016-2019
 */
package com.thomas.yang;

import java.io.Serializable;

/**
 * @Author Thomas 2019-12-24 14:14
 * The world of programs is a wonderful world
 */
public class Dept implements Serializable// entity --orm--- db_table
{
    private Long deptno; // 主键
    private String dname; // 部门名称
    private String db_source;// 来自那个数据库，因为微服务架构可以一个服务对应一个数据库，同一个信息被存储到不同数据库

    public Dept(String dname) {
        super();
        this.dname = dname;
    }

    public Dept() {
    }

    public Dept(Long deptno) {
        this.deptno = deptno;
    }

    public Dept(Long deptno, String dname, String db_source) {
        this.deptno = deptno;
        this.dname = dname;
        this.db_source = db_source;
    }

    public Long getDeptno() {
        return deptno;
    }

    public void setDeptno(Long deptno) {
        this.deptno = deptno;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getDb_source() {
        return db_source;
    }

    public void setDb_source(String db_source) {
        this.db_source = db_source;
    }
}
